package com.zxcz.aliyun;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "aliyun.iot")
public class IotConfig {
	private List<String> deviceProductKey;//设备ProductKey
    private String appProductKey;//手机app ProductKey
    private String miniProgProductKey;//微信小程序ProductKey
    private String accessKey;// 阿里云accessKey
    private String accessSecret;//// 阿里云accessSecret
    private String regionId;// regionId
    private String uid;//阿里云uid
    private String endPoint;// endPoint: https://${uid}.iot-as-http2.${region}.aliyuncs.com
    private String consumerGroupId;//消费组ID
    
	public List<String> getDeviceProductKey() {
		return deviceProductKey;
	}
	public void setDeviceProductKey(List<String> deviceProductKey) {
		this.deviceProductKey = deviceProductKey;
	}
	public String getAppProductKey() {
		return appProductKey;
	}
	public void setAppProductKey(String appProductKey) {
		this.appProductKey = appProductKey;
	}
	public String getMiniProgProductKey() {
		return miniProgProductKey;
	}
	public void setMiniProgProductKey(String miniProgProductKey) {
		this.miniProgProductKey = miniProgProductKey;
	}
	public String getAccessKey() {
		return accessKey;
	}
	public void setAccessKey(String accessKey) {
		this.accessKey = accessKey;
	}
	public String getAccessSecret() {
		return accessSecret;
	}
	public void setAccessSecret(String accessSecret) {
		this.accessSecret = accessSecret;
	}
	public String getRegionId() {
		return regionId;
	}
	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getEndPoint() {
		return endPoint;
	}
	public void setEndPoint(String endPoint) {
		this.endPoint = endPoint;
	}
	public String getConsumerGroupId() {
		return consumerGroupId;
	}
	public void setConsumerGroupId(String consumerGroupId) {
		this.consumerGroupId = consumerGroupId;
	}
	@Override
	public String toString() {
		return "IotConfig [deviceProductKey=" + deviceProductKey + ", appProductKey=" + appProductKey
				+ ", miniProgProductKey=" + miniProgProductKey + ", accessKey=" + accessKey + ", accessSecret="
				+ accessSecret + ", regionId=" + regionId + ", uid=" + uid + ", endPoint=" + endPoint
				+ ", consumerGroupId=" + consumerGroupId + "]";
	}
    
}
